<html>
    <head>
        <script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
    </head>
    <body>
        <div id="app">
            输入内容:<input type="text" v-model="message"><br/>
            反转内容:{{reversedMessage}}
        </div>
        <script>
            new Vue({
                el:'#app',
                data:{
                    message:''
                },
                computed:{
                    reversedMessage:function(){
                        return this.message.split('').reverse().join('')
                    }
                }
            })
        </script>
    </body>
</html>